//
//  CGCommonSelectedView.h
//  仿京东地址选择器
//
//  Created by up72_2017_new on 2018/6/22.
//  Copyright © 2018年 up72_2017_new. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CGCommonSelectedModel.h"
#import "CustomAddressCell.h"

@interface CGCommonSelectedView : UIView
/**
 控件标题颜色
 */
@property (nonatomic, strong) UIColor *bigTitleColor;

/**
 控件标题字体
 */
@property (nonatomic, strong) UIFont *bigTitlefont;

/**
 标题默认颜色
 */
@property (nonatomic, strong) UIColor *titleNormalColor;

/**
 标题选中颜色
 */
@property (nonatomic, strong) UIColor *titleSelectedColor;

/**
 标题字体
 */
@property (nonatomic, strong) UIFont *titlefont;

/**
 标题最大宽度（如果不设置，那么就不限制，标题全部显示）
 */
@property(nonatomic,assign)CGFloat titleMaxWidth;

/**
 选中标记标签颜色
 */
@property (nonatomic, strong) UIColor *signLineViewColor;

/**
 控件高度
 */
@property(nonatomic, assign)NSUInteger defaultHeight;

/**
 标题ScrollView的高度
 */
@property(nonatomic, assign)CGFloat titleScrollViewH;

/**
 控件标题
 */
@property(nonatomic, copy)NSString *title;

/**
 点击回调block
 */
@property (nonatomic, copy) void(^clickBlock)(CGCommonItemModel *selectedModel, NSInteger shouldAddItemId);

/**
 选择完成回调block
 */
@property (nonatomic, copy) void(^selectedFinishBlock)(NSArray<CGCommonItemModel *> *selectedArr);

/**
 初始化选择控件
 
 @return 控件对象
 */
- (CGCommonSelectedView *)initSelectedWidgetView;

/**
 显示
 */
-(void)show;

/**
 添加一个数据源

 @param model 数据源模型
 */
- (void)addDataWithModel:(CGRootModel *)model;
@end
